package com.xingxing.io;

import java.io.InputStream;

/**
 * @program: IPersistence_test
 * @description:
 * @author: xinghaozhao
 * @create: 2020-08-21
 */
public class Resources {
    //根据配置文件的路径，将配置文件加载成子节输入流，存放在内存中
    public static InputStream getResourceAsStream(String path){
        InputStream resourceAsStream = Resources.class.getClassLoader().getResourceAsStream(path);

        return resourceAsStream;
    }
}
